package org.wwy.poitl;


import com.spire.doc.Document;
import com.spire.doc.FileFormat;

public class WordtoPDF {

    public static void main(String[] args) {

         //加载word示例文档

        Document document = new Document();

        document.loadFromFile("d:/CreateWordXDDFChart2.docx");

        //保存为PDF格式

         document.saveToFile("d:/toPDF2.pdf", FileFormat.PDF);

    }

}